import Vue from 'vue'
import Router from 'vue-router'

const index = resolve => require(['@/pages/index'], resolve);
const primary = resolve => require(['@/pages/primary'], resolve);
const special = resolve => require(['@/pages/special'], resolve);
const check = resolve => require(['@/pages/check'], resolve);
const me = resolve => require(['@/pages/me'], resolve);
const personInfo = resolve => require(['@/pages/personInfo'], resolve);
const remind = resolve => require(['@/pages/remind'], resolve);
const messageDetail = resolve => require(['@/pages/messageDetail'], resolve);
const introduce1 = resolve => require(['@/pages/introduce1'], resolve);
const introduce2 = resolve => require(['@/pages/introduce2'], resolve);
const introduce3 = resolve => require(['@/pages/introduce3'], resolve);
const introduce4 = resolve => require(['@/pages/introduce4'], resolve);
const introduce5 = resolve => require(['@/pages/introduce5'], resolve);

Vue.use(Router)

export default new Router({
  mode: 'history',
  base:'/',
  routes: [
      {
        path: '/',
        name: 'index',
        meta: {
          title: '清肠规范指导预约',
        },
        component: index
      },
      {
          path: '/primary',
          name: 'primary',
          meta: {
              title: '基础信息',
          },
          component: primary
      },
      {
          path: '/special',
          name: 'special',
          meta: {
              title: '特殊情况',
          },
          component: special
      },
      {
          path: '/check',
          name: 'check',
          meta: {
              title: '检查信息',
          },
          component: check
      },
      {
          path: '/me',
          name: 'me',
          meta: {
              title: '我的'
          },
          component: me
      },
      {
          path: '/personInfo',
          name: 'personInfo',
          meta: {
              title: '个人信息'
          },
          component: personInfo
      },
      {
          path: '/remind',
          name: 'remind',
          meta: {
              title: '我的提醒'
          },
          component: remind
      },
      {
          path: '/messageDetail',
          name: 'messageDetail',
          meta: {
              title: '提醒详情'
          },
          component: messageDetail
      },
      {
          path: '/introduce1',
          name: 'introduce1',
          meta: {
              title: '介绍'
          },
          component: introduce1
      },
      {
          path: '/introduce2',
          name: 'introduce2',
          meta: {
              title: '介绍'
          },
          component: introduce2
      },
      {
          path: '/introduce3',
          name: 'introduce3',
          meta: {
              title: '介绍'
          },
          component: introduce3
      },
      {
          path: '/introduce4',
          name: 'introduce4',
          meta: {
              title: '介绍'
          },
          component: introduce4
      },
      {
          path: '/introduce5',
          name: 'introduce5',
          meta: {
              title: '介绍'
          },
          component: introduce5
      },
  ]
})
